package com.test.rabforspringboot.config;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

//@Configuration
public class RabbitQueueConfig {

    //创建一个队列
    @Bean
    public Queue createQueue(){
        return new Queue("myQueue");
    }

}
